import { Body, Controller, Get, Post, Req, Res } from '@nestjs/common'
import { RevenueService } from './revenue.service'
import { Request, Response } from 'express'
@Controller('revenue')
export class RevenueController {
  constructor(private readonly RevenueService: RevenueService) {}
  @Get()
  getRevenueDate(){
    return this.RevenueService.getRevenueDate()
  }
  @Post('add')
  addRevenueDate(@Body() body:any){
    return this.RevenueService.addRevenueDate(body)
  }
  @Post("search")
  searchStoreData(@Req() req:Request, @Res() res:Response){
    return this.RevenueService.searchStoreData(req,res)
  }
}
